package com.jvyou.ognl;

import ognl.OgnlContext;
import ognl.OgnlException;
import ognl.PropertyAccessor;

import java.util.Map;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/5/30 18:12
 * @Description
 */
public class UserPropertyAccessor implements PropertyAccessor {
    @Override
    public Object getProperty(Map map, Object o, Object o1) throws OgnlException {
        System.out.println(map);
        System.out.println(o);
        System.out.println(o1);
        return 111;
    }

    @Override
    public void setProperty(Map map, Object o, Object o1, Object o2) throws OgnlException {

    }

    @Override
    public String getSourceAccessor(OgnlContext ognlContext, Object o, Object o1) {
        return null;
    }

    @Override
    public String getSourceSetter(OgnlContext ognlContext, Object o, Object o1) {
        return null;
    }
}
